<div id="content-container" class="container">
    <div class="row">
        <div class="col-md-3">
            {include file="common/sidenav" /}
        </div>
        <div class="col-md-9">
            <div class="panel panel-default">
                <div class="panel-body">
                    <h2 class="page-header">子级账户列表</h2>

                    <div class="" style="padding: 20px;">
                        <div class="row">
                            <a href="{:url('add')}" style="margin-bottom: 10px;" class="btn btn-success btn-add" title="添加"><i class="fa fa-plus"></i> 添加</a>
                            <table id="table1" class="table table-striped table-bordered table-hover" width="100%">
                                <thead>

                                <tr>
                                    <th style="text-align: center; vertical-align: middle; " data-field="total">
                                        <div class="th-inner sortable both">账户ID</div>
                                        <div class="fht-cell"></div>
                                    </th>
                                    <th style="text-align: center; vertical-align: middle; " data-field="day">
                                        <div class="th-inner sortable both">账号</div>
                                        <div class="fht-cell"></div>
                                    </th>

                                    <th style="text-align: center; vertical-align: middle; " data-field="platform">
                                        <div class="th-inner ">手机</div>
                                        <div class="fht-cell"></div>
                                    </th>
                                    <th style="text-align: center; vertical-align: middle; " data-field="platform">
                                        <div class="th-inner ">状态</div>
                                        <div class="fht-cell"></div>
                                    </th>
                                    <th style="text-align: center; vertical-align: middle; " data-field="platform">
                                        <div class="th-inner ">最后登陆时间</div>
                                        <div class="fht-cell"></div>
                                    </th>
                                    <th style="text-align: center; vertical-align: middle; " data-field="platform">
                                        <div class="th-inner ">IP</div>
                                        <div class="fht-cell"></div>
                                    </th>
                                    <th style="text-align: center; vertical-align: middle; " data-field="platform">
                                        <div class="th-inner ">操作</div>
                                        <div class="fht-cell"></div>
                                    </th>
                                </tr>
                                </thead>
                                <tbody data-listidx="0">
                                {foreach name="list" item="vo"}
                                <tr data-index="0">
                                    <td style="text-align: center; vertical-align: middle; ">{$vo.id}</td>
                                    <td style="text-align: center; vertical-align: middle; ">{$vo.username}</td>
                                    <td style="text-align: center; vertical-align: middle; ">{$vo.mobile}</td>
                                    <td style="text-align: center; vertical-align: middle; ">{$vo.status}</td>
                                    <td style="text-align: center; vertical-align: middle; ">{:date('Y-m-d H:i:s',$vo.logintime)}</td>
                                    <td style="text-align: center; vertical-align: middle; ">{$vo.loginip}</td>
                                    <td style="text-align: center; vertical-align: middle; ">
                                        <a href="{:url('edit',['ids'=>$vo.id])}" class="btn btn-xs btn-success btn-editone" data-toggle="tooltip" title="" data-table-id="table" data-field-index="11" data-row-index="0" data-button-index="1" data-original-title="编辑"><i class="fa fa-pencil"></i></a>
                                        <a href="javascript:;" data-id="{$vo.id}" class="btn btn-xs btn-danger btn-delone" data-toggle="tooltip" title="" data-table-id="table" data-field-index="11" data-row-index="0" data-button-index="2" data-original-title="删除"><i class="fa fa-trash"></i></a></td>
                                </tr>
                                {/foreach}
                                </tbody>
                            </table>
                        </div>
                    </div>
                    {$page}
                </div>
            </div>
        </div>
    </div>
</div>

<style>
    .columns-right.pull-right{
        margin-top: 0px !important;
        margin-left: 5px;
    }
</style>